﻿#ifndef VIPEDITDIALOG_H
#define VIPEDITDIALOG_H

#include <QDialog>
#include <QAbstractButton>
#include <QCloseEvent>
#include "vipdialog.h"
#include <QList>
namespace Ui {
class VipEditDialog;
}

class VipEditDialog :public QDialog
{
    Q_OBJECT

public:
    void setEditMode(bool mode);
    explicit VipEditDialog(QWidget *parent = 0);
    ~VipEditDialog();

    void setSelectedItemRow(int value);
    void setInfo(QList<QString> p);
private slots:

    void on_buttonBox_accepted();

    void on_buttonBox_clicked(QAbstractButton *button);

private:
    bool flag = true;   //模式选择，true为新添加，false为修改
    int selectedItemRow;
    Ui::VipEditDialog *ui;
    QList<QString>info;
};

#endif // VIPEDITDIALOG_H
